package com.springboot.uav.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @TableName address
 */
@TableName(value ="address")
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class Address {
    @TableId
    @Schema(description = "主键地址id",example = "10")
    private Integer addId;

    @Schema(description = "用户id 关联user_id",example = "1")
    private Integer userId;

    @Schema(description = "常用地址",example = "深圳大学冬筑1326")
    private String address;

    @Schema(description = "地址类型：1收货地址，2取货地址",example = "1")
    private Integer addressType;

}
